package com.tanhua.dubbo.api;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.dubbo.DbApplication;
import com.tanhua.dubbo.mapper.UserInfoMapper;
import com.tanhua.model.db.UserInfo;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @auther : 白月尘
 * @date : 14:50  2021/10/18
 */
@SpringBootTest(classes = DbApplication.class)
@RunWith(SpringRunner.class)
@MapperScan("com.tanhua.dubbo.mapper")
public class test {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Test
    public void testA(){
        Page page=new Page(1,3);
        IPage<UserInfo> blacklist = userInfoMapper.findBlackList(page, 106);
        System.out.println(blacklist.getRecords());
    }
}
